package com.xgc.book.bookserver.util.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author PangJunjie
 * @Date 2023/11/21/021
 */
public class Shiro2Token implements AuthenticationToken {
    private String token;

    public Shiro2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
